﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Itop.GpsCar.Web.CustomAdmin.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="chrome=IE8" http-equiv="X-UA-Compatible">
<title>default</title>
    <link href="../resources/css/global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../resources/js/ch.js"></script>
<script src="../resources/js/underscore.js"> </script>
<script src="../resources/js/dialog.js"></script>
<script type="text/javascript">
    function reloadTreeRequest(parm) {
        var p = "refreshCache&" + parm; //"reloadTree&";
        var urls = ['http://www.gpsoo.net/GetDataService?method=', 'http://host11.gpsoo.net:9190/GetDataService?method=', 'http://host11.gpsoo.net:9191/GetDataService?method=', 'http://host11.gpsoo.net:9192/GetDataService?method=', 'http://113.12.82.249:9190/GetDataService?method=', 'http://113.12.82.249:9191/GetDataService?method=', 'http://113.12.82.249:9192/GetDataService?method=', 'http://59.188.23.235:9190/GetDataService?method=', 'http://113.105.139.158:9190/GetDataService?method=', 'http://113.105.139.158:9191/GetDataService?method=', 'http://113.105.139.158:9192/GetDataService?method='];
        var i = 0;
        var AjaxRequest = function() {
            if (i < urls.length) {
                $.ajax({ type: "GET", dataType: "jsonp", jsonp: 'callback', url: urls[i] + p + "&mds=" + mds, data: '' });
                i++;
                setTimeout(AjaxRequest, 1500);
            }
        };
        AjaxRequest();
    }
    var mousePos = { x: 0, y: 0 };
    var rootLoadSalePageTimer = null;
    var bt = document.getElementsByName("flag");
    function initEvent() {
        try {
            if ((top.location + "").indexOf("gps00") > -1) { }
        } catch (e) {
            document.body.innerHTML = "<div style='width:100%;height:77px;line-height:77px;font-size:24px;color:#FF0000;text-align:center;font-weight:bold;'>您的访问被拒绝,重新登录点<a href='http://www.gpsoo.net' target='_blank'>这里</a></div>";
        }
        loadMessageCallBackJs();
        GFRAME.restFrame();
    }
    function loadMessageCallBackJs() {
        loadFile(["http://www.gpsoo.net/GetDataService?method=getEntrpriseNumInfo&school_id=1189337&callback=loadMessageCallBack&mds=C6DEEB6499DA40345AEAB3A1231A3872.jvm8032"]);
    }
    function trim(str) {
        return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function clearDefault(obj, attr) {//清除表单对象中的默认值
        var str = trim(obj.value);
        if (str == obj.getAttribute(attr) || str == "") {
            obj.value = "";
            obj.style.color = "#000000";
        }
    }
    function setDefault(obj, attr) {//重置表单对象中的默认值
        var str = trim(obj.value);
        if (str == "") {
            obj.value = obj.getAttribute(attr);
            obj.style.color = "#bebebe";
        }
    }
    function searchProduct(id, attr, window) {
        var obj = window.document.getElementById(id);
        var str = trim(obj.value);
        if (obj.value == obj.getAttribute(attr) || str == "") {
            alert(obj.getAttribute(attr) + lg.notblank);
            return;
        }
        win.openWinLayer(lg.pro + lg.search, 'searchProduct.jsp?school_id=1189337&info=' + encodeURIComponent(obj.value) + "&infuse=" + top.infuse, 700, 480, 2, window, null)
    }
    function searchProductHeight() {
        if (win) win.openWinLayer(lg.pro + lg.search, 'searchProduct.jsp?school_id=1189337&info=&isHeightSearch=true&infuse=' + top.infuse, 700, 480, 2, window, null)
    }
    function searchCustom(id, attr, window) {
        var obj = window.document.getElementById(id);
        var str = trim(obj.value);
        if (obj.value == obj.getAttribute(attr) || str == "") {
            alert(obj.getAttribute(attr) + lg.notblank);
            return;
        }
        win.openWinLayer(lg.client + lg.search, 'searchCustomer.jsp?school_id=1189337&name=' + encodeURIComponent(obj.value), 650, 450, 2, window, null)
    }
    function searchW(v, win) {
        var obj = win.document.getElementById('imeiName');
        if (v == "custom") {
            win.document.getElementById('adv').style.display = "none";
            win.document.getElementById('custom').style.display = "block";
            win.document.getElementById('product').style.display = "none";
            if (obj.value == lg.stip) {
                obj.style.color = "#bebebe";
                obj.value = lg.stip1;
                obj.setAttribute("title", lg.stip1);
            }
        } else {
            win.document.getElementById('adv').style.display = "block";
            win.document.getElementById('custom').style.display = "none";
            win.document.getElementById('product').style.display = "block";
            if (obj.value == lg.stip1) {
                obj.style.color = "#bebebe";
                obj.value = lg.stip;
                obj.setAttribute("title", lg.stip);
            }
        }
    }
    function enterCallback(obj, win) {
        if (obj.value == "") {
            return;
        } else {
            if (win.document.getElementById('typeList')) {
                var options = document.getElementById('typeList').options, item;
                for (var j = 0; j < options.length; j++) {
                    item = options[j];
                    if (item.selected) {
                        if (item.value == "product")
                            searchProduct('imeiName', 'title', window);
                        else
                            searchCustom('imeiName', 'title', window);
                    }
                }
            } else {
                searchProduct('imeiName', 'title', window);
            }
        }
    }
    function selectSearchType(obj, win) {
        searchW(obj.value, win);
    }
    function selectMapPage(custid, custname) {
        GFRAME.pageMenuShow('Map', '../user/monitor.jsp?custid=1189337&mds=C6DEEB6499DA40345AEAB3A1231A3872.jvm8032&custname=flynature&isDealer=true&viewType=null&url=http://www.gpsoo.net&mapId=baidu', bt[2]);
        var app = function() {
            if (pageShowFrame_Map.haseChildSchoolBack) {
                pageShowFrame_Map.GFRAME.selectCust(custid, custname);
            } else {
                setTimeout(app, 2000);
            }
        };
        app();
    }
    function showCustomMessageWin() {
        win.openWinLayer(top.lg.SuperCustom, "customUpdate.jsp?custid=1000092&flag=parent", 400, 210, 2, window, null);
    }
    //加载JS
    function loadFile(arr) {//需要加载的JS数组
        var oHead = document.getElementsByTagName('HEAD').item(0);
        for (var i = 0; i < arr.length; i++) {
            var oScript = document.createElement("script");
            oScript.type = "text/javascript";
            oScript.src = arr[i];
            oHead.appendChild(oScript);
        }
    }
    function loadMessageCallBack(obj) {
        login_msg = obj;
        var w = document.getElementById('pageShowFrame_Home').contentWindow;
        w.document.getElementById('idSuggestBox').value = login_msg.name;
        w.document.getElementById('id').value = login_msg.id;
        if ("1189337" != "1000000") {
            w.wirteCount(login_msg);
            //window.frames["pageShowFrame_Home"].wirteCount(login_msg);
        }
    }
    function loadMessageTotalCallBack(obj) {
        if (obj != "" && obj != null && obj.total > 0) {
            $("#total").html(obj.total);
        }
        if (showRecharge) {
            document.getElementById('recharge_b').style.display = "";
        }
        else if (obj.infuse) {
            document.getElementById('infuse_b').style.display = "";
        }
        if (obj.infuse) {
            infuse = 1;
        }
    }
    function view() {
        var fm = top.document.getElementById('pageShowFrame_Sales');
        var parms_id = view.arguments;
        var tp = [];
        for (var i = 0; i < parms_id.length; i++) {
            tp.push(parms_id[i]);
        }
        var app = function() {
            try {
                eval("top.frames['pageShowFrame_Sales'].getNodeAndSelect(" + tp.join(',') + ")");
            } catch (e) {
                if (fm.getAttribute("src").indexOf('null.html') > -1) {
                    top.GFRAME.pageMenuShow('Sales', 'mainTree.jsp?logOut=&school_id=1189337&infuse=' + top.infuse, top.bt[1]);
                }
                try {
                    eval("top.frames['pageShowFrame_Sales'].getNodeAndSelect(" + tp.join(",") + ")");
                } catch (e) {
                    setTimeout(app, 1000);
                }
            }
        };
        app();
    }
    function showTsetMenu() {
        var _m = document.getElementById("tset_menu");
        var _i = document.getElementById("tset_item");
        _m.className = "tset_menu_over";
        _i.className = "tset_item_over";
    }
    var hideTsetTimer = null;
    function hideTsetMenu() {
        window.clearTimeout(hideTsetTimer);
        var app = function() {
            var _m = document.getElementById("tset_menu");
            var _i = document.getElementById("tset_item");
            _m.className = "tset_menu";
            _i.className = "tset_item";
        };
        hideTsetTimer = window.setTimeout(app, 200);
    }
    function moveTsetMenu() {
        window.clearTimeout(hideTsetTimer);
    }
    function redirect() {
        var url = 'sendRedirect.jsp?logOut=&login_id=1189337';
        window.open(url);
    } 
</script>
<script src="../resources/js/topframe.js" type="text/javascript"></script>
<script src="../resources/js/jquery-1.js" type="text/javascript"></script>
<script type="text/javascript">
    //{id:"1000001",login_name:"康凯斯",grade:4,name:"深圳市康凯斯信息技术有限公司",address:"深圳市宝安区留仙一路高新奇科技工业园",contact:"LI ZONGPENG",phone:"29121200",total:1292,selfNum:38,flatNum:37,supplyNum:43}
    var passSalesProimei = "", login_msg = null, loginUrl = "http://www.gpsoo.net/", lng = "cn", mds = "C6DEEB6499DA40345AEAB3A1231A3872.jvm8032", infuse = "-1", pid = "1000092";
    var remotUrl = "http://www.gpsoo.net/"; //接口服务器地址
    var updateUrl = "http://www.gpsoo.net/"; //接口服务器地址
    var timelyUrl = "http://tbo.gpsoo.net/"; //接口服务器地址
    var suggestUrl = "http://www.gpsoo.net/SearchService?method=intelSuggest&school_id=1189337&mds=C6DEEB6499DA40345AEAB3A1231A3872.jvm8032"; //suggest查询的接口地址
    //var suggestUrl = "http://192.168.1.104:8081/ecar-service/SearchService?method=intelSuggest&school_id=1189337";//suggest查询的接口地址
    var reportServerPath = "http://his.10086care.com/";
    var batchSaleObj = { imeis: [], text: "" };
    var custId = "1189337";
    var alarmSound = true;
    var showRecharge = false; 
</script>
<script type="text/javascript" src="../resources/js/GetDataService_002"></script>
<script type="text/javascript" src="../resources/js/warns.js"></script>
<script type="text/javascript" src="../resources/js/animateWin.js"></script>
<script type="text/javascript" src="../resources/js/suggest.js"></script>
<script type="text/javascript" src="../resources/js/GetDataService"></script>  
</head>
<body onload="initEvent();" onresize="GFRAME.restFrame();">
<div class="container">
<b class="con_a">
<b class="con_b">
<b class="con_c">
<div id="gcf" style="display:none;">
<a class="gcf-install" title="使用谷歌访问加速插件，大大提高页面访问速度" href="http://www.google.com/chromeframe/thankyou.html?quickenable=true&quickenableinstalled=true" target="_blank"> 安装访问加速插件 </a>
<a class="gcf-close" href="javascript:;">关闭</a>
</div>
<div style="width:1002px; position:absolute;z-index:1;">
<img height="1" width="1" src="../resources/images/null.gif">
</div>
<div id="header">
<div class="top">
<b class="top_bg">
<div class="logo">
<img height="59" width="185" src="../resources/images//logo_cn.gif">
</div>
<div class="company">
<span>flynature</span>
</div>
<div class="site_bga">
<b class="site_bgb">
<ul class="site_links">
<li></li>
<li class="sep">&nbsp;</li>
<li class="msg">
<a href="javascript:GFRAME.pageMenuShow('Message','viewMessage.jsp?school_id=1189337',bt[0]);">
<span id="total">0</span>
</a>
</li>
<li class="sep">|</li>
<li>
<a href="http://www.gpsoo.net/?back=true">退出</a>
</li>
<li class="sep">|</li>
<li>
<a target="_blank" href="http://113.105.152.146:9010/helpClean.jsp?lang=cn&type=ECAR">帮助</a>
</li>
<li style="display:none">
<span>
<a onclick="GFRAME.pageMenuShow('Message','viewMessage.jsp?school_id=1189337',this);">消息</a>
</span>
</li>
</ul>
</b>
</div>
</b>
</div>
<div id="nav_wrap">
<ul id="nav">
<li class="current">
<span>
<a onclick="GFRAME.pageMenuShow('Home','home.jsp?school_id=1189337&hiddenTop=true',this);" name="flag">我的账户</a>
</span>
</li>
<li class="">
<span>
<a onclick="GFRAME.pageMenuShow('Sales','mainTree.jsp?logOut=&school_id=1189337&infuse='+infuse,this)" name="flag">我的客户</a>
</span>
</li>
<li id="infuse_b" class="" style="display:none;">
<span>
<a onclick="GFRAME.pageMenuShow('Card','cardList.jsp?school_id=1189337',this);" name="flag">充值卡</a>
</span>
</li>
<li id="recharge_b" class="" style="display:none;">
<span>
<a onclick="GFRAME.pageMenuShow('Recharge','rechargedList.jsp?school_id=1189337',this);" name="flag">充值卡</a>
</span>
</li>
<li class="monitor">
<b></b>
<a onclick="redirect();" target="_blank">
<script type="text/javascript">
document.write(lg.account);
</script></a>
</li>
</ul>
<ul class="search">
<li class="txt">
<form id="f" onsubmit="return false;" action="#" name="f">
<input id="imeiName" type="text" onkeydown="if(event.keyCode==13) enterCallback(this,window);" title="设备号(IMEI)/客户名/账号" onblur="setDefault(this,'title')" onfocus="clearDefault(this,'title')" value="设备号(IMEI)/客户名/账号" name="imeiName" autocomplete="off">
<div id="sd_1343449629806" style="display: none;"></div>
</form>
</li>
<li class="device">
<a href="javascript:searchProduct('imeiName','title',window)">搜设备</a>
</li>
<li class="customer">
<a style="" href="javascript:searchCustom('imeiName','title',window)">搜客户</a>
</li>
<li class="more">
<a href="javascript:searchProductHeight();" title="级搜高索"></a>
</li>
</ul>
</div>
</div>
<div id="pageShowCanvas_Home" class="pageShowCanvas" style="display: block; width: 1588px; height: 371px;">
<iframe id="pageShowFrame_Home" class="main_bg" frameborder="0" scrolling="auto" iframflag="iframeTag" style="width: 100%; height: 371px; overflow: auto;" src="home.aspx" name="pageShowFrame_Home" allowtransparency="true">
</iframe>
</div>
<div id="pageShowCanvas_Sales" class="pageShowCanvas" style="display: none; width: 1588px; height: 371px;">
<iframe id="pageShowFrame_Sales" frameborder="0" scrolling="auto" iframflag="iframeTag" style="width: 100%; height: 371px; overflow: auto;" src="mainTree.aspx" name="pageShowFrame_Sales">
<html>
</iframe>
</div>
<div id="pageShowCanvas_Map" class="pageShowCanvas" style="display: none; width: 1588px; height: 371px;">
<iframe id="pageShowFrame_Map" frameborder="0" scrolling="auto" iframflag="iframeTag" style="width: 100%; height: 371px; overflow: auto;" src="null.htm" name="pageShowFrame_Map">
</iframe>
</div>
<div id="pageShowCanvas_Tracker" class="pageShowCanvas" style="display: none; width: 1588px; height: 371px;">
<iframe id="pageShowFrame_Tracker" frameborder="0" scrolling="auto" iframflag="iframeTag" style="width: 100%; height: 371px; overflow: auto;" src="null.htm" name="pageShowFrame_Tracker">
</iframe>
</div>
<div id="infuse_f">
<div id="pageShowCanvas_Card" class="pageShowCanvas" style="display: none; width: 1588px; height: 371px;">
<iframe id="pageShowFrame_Card" class="main_bg" frameborder="0" scrolling="auto" iframflag="iframeTag" style="width: 100%; height: 371px; overflow: auto;" src="null.htm" name="pageShowFrame_Card" allowtransparency="true">
</iframe>
</div>
</div>
<div id="recharge_ct">
<div id="pageShowCanvas_Recharge" class="pageShowCanvas" style="display: none; width: 1588px; height: 371px;">
<iframe id="pageShowFrame_Recharge" class="main_bg" frameborder="0" scrolling="auto" iframflag="iframeTag" style="width: 100%; height: 371px; overflow: auto;" src="null.htm" name="pageShowFrame_Recharge" allowtransparency="true">
<html xmlns="http://www.w3.org/1999/xhtml">
</iframe>
</div>
</div>
<div id="pageShowCanvas_Message" class="pageShowCanvas" style="display: none; width: 1588px; height: 371px;">
<iframe id="pageShowFrame_Message" class="main_bg" frameborder="0" scrolling="auto" iframflag="iframeTag" style="width: 100%; height: 371px; overflow: auto;" src="null.htm" name="pageShowFrame_Message" allowtransparency="true">
</iframe>
</div>
</b>
</b>
</b>
</div>
</body>
</html>
